package com.xiaobaibai.service;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaobaibai.entity.UserAddress;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-10-16
 */
public interface IUserAddressService extends IService<UserAddress> {

    List<UserAddress> getAddressByUserId(Integer userId);

    boolean addUserAddress(UserAddress userAddress);

    void updateAddressDefault(UpdateWrapper<UserAddress> updateWrapper,Integer userId);
    
}
